package com.pyue.eam.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pyue.eam.app.api.entity.AppRole;
import com.pyue.eam.app.api.vo.AppRoleExcelVO;
import com.pyue.eam.common.core.util.R;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * app角色表
 *
 * @author aeizzz
 * @date 2022-12-07 09:52:03
 */
public interface AppRoleService extends IService<AppRole> {

	List<AppRole> findRolesByUserId(Long userId);

	/**
	 * 删除用户的同时，把role_menu关系删除
	 * @param ids RoleIds
	 */
	Boolean deleteRoleByIds(Long[] ids);

	R importRole(List<AppRoleExcelVO> excelVOList, BindingResult bindingResult);

}
